package params

import (
	"gitee.com/zhanglibin/gmall/model/user"
)

type LoginReqParam struct {
	Username string `json:"username" form:"username" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
}

type RegisterReqParam struct {
	Username string `json:"username" form:"username" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
}

type GetUserInfoParam struct {
	Id       int    `json:"id" form:"id"`
	Username string `json:"username" form:"username"`
}

type GetUserInfoResponse struct {
	UserInfo *user.User `json:"userinfo"`
}

type GetUserListParam struct {
	Page     int `json:"page" form:"page" binding:"required"`
	PageSize int `json:"page_size" form:"page_size" binding:"required"`
}

type GetUserListResponse struct {
	UserList []user.User `json:"userlist"`
	Total    int64       `json:"total"`
}

type UpdateParam struct {
	user.User
}
